package com.baor.feign;

import com.baor.base.util.R;
import com.baor.domain.MovieVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@Service
@FeignClient(value = "movies")
public interface MovieManagerFeign {

    @RequestMapping(value="/movies/movieList",produces = "application/json")
    R movieList(@RequestBody Map<String,Object> params);

    @RequestMapping(value="/movies/movieInfo")
    MovieVO movieInfo(@RequestParam("movieId") int movieID);
}
